package com.bdqn.serice.impl;

import com.bdqn.serice.SmbmsBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.mapper.SmbmsBillMapper;
import com.bdqn.pojo.SmbmsBill;

import java.util.List;

@Service
public class SmbmsBillServiceImpl implements SmbmsBillService {

    @Resource
    private SmbmsBillMapper smbmsBillMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return smbmsBillMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SmbmsBill record) {
        return smbmsBillMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(SmbmsBill record) {
        return smbmsBillMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(SmbmsBill record) {
        return smbmsBillMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(SmbmsBill record) {
        return smbmsBillMapper.insertSelective(record);
    }

    @Override
    public SmbmsBill selectByPrimaryKey(Long id) {
        return smbmsBillMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SmbmsBill record) {
        return smbmsBillMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SmbmsBill record) {
        return smbmsBillMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SmbmsBill> selectBill(SmbmsBill smbmsBill) {
        return smbmsBillMapper.selectBill(smbmsBill);
    }

}
